package shop.tbzj.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import shop.tbzj.entity.TbContentCategory;
import shop.tbzj.mapper.ContentCategoryMapper;
import shop.tbzj.service.ContentCategoryService;
@Service
public class ContentCategoryServiceImpl implements ContentCategoryService{
	@Autowired
	private ContentCategoryMapper contentCategoryMapper;
	
	
	@Override
	public List<TbContentCategory> findAll() {
		 
		return contentCategoryMapper.findAll();
	}


	@Override
	public List<TbContentCategory> findCategoryByParentId(Integer parentId) {
		 
		return contentCategoryMapper.findCategoryByParentId(parentId);
	}

}
